<include file="Public:header" />
   		<div class="mainbox" style="width:800px;height:1300px;"><br/>
        	<h1>新增职工信息</h1>
            <br/><br/><br/>
            <form class="form-horizontal" action="{:U('Admin/System/save')}" method="POST">

                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>教职工编号:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_id">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>密码:</label>
                    <div class="col-sm-9">
                        <input type="password" class="form-control" id="inputEmail3" name="password">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>教职工名字:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_name">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>教职工单位:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_unit">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>联系电话:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_tel">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>邮箱:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_email">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>所属院系:</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputEmail3" name="staff_ins">
                    </div>
                </div>
                <div class="form-group" style="height:40px;" >
                    <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>角色:</label>
                    <div class="col-sm-9">
                        <select name="role_id" id="role_id_se">
                            <foreach name="roleid_and_name" item="v" key="k">
                                <option value="{$k}" >{$v}</option>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group" style="height:40px;" id="tmgrs">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>所属学院领导:</label>
                    <div class="col-sm-9">
                        <select name="tmgr">
                            <foreach name="tmgrs" item="v" >
                                <option value="">---</option>
                                <option value="{$v['staff_id']}">{$v.staff_id}--{$v.staff_name}</option>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <button type="submit" class="btn btn-info btn-lg" style="margin-left:50px;">
                        <span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;保存记录&nbsp;&nbsp;&nbsp;
                    </button>

            </form>
           
        
        
    	</div>
    </div>
</div> 

    		<!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
			<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
            <!-- 3 加载bootstrap核心 -->
            <script src="<?php echo JS_URL ;?>bootstrap.min.js"></script>
<script >
//    $(function () {
//        $("#role_id_se").onkeyup(function () {
//            show_tmgrs($(this).find('option:checked').value);
//        });
//
//    })
    function show_tmgrs(role_id) {
        alert(role_id);
        if(3==role_id){
            $('#tmgrs').css('display','block');
        }else{
            $('#tmgrs').css('display','none');
        }
    }
</script>
</body>
</html>
